//
//  ZYTagCell.m
//  AudientList
//
//  Created by zhangweiwei on 16/6/15.
//  Copyright © 2016年 Erica. All rights reserved.
//

#import "ZYTagCell.h"
#import "KCCategory.h"

#import "YYCategories.h"

CGFloat const ZYTagCellHeight = 25;
NSString *const ZYTagCellReuseID = @"ZYTagCell";
CGFloat const ZYTagCellTextLabelFontSize = 14;

@interface ZYTagCell ()

@property (weak, nonatomic) IBOutlet UIButton *tagBtn;

@end

@implementation ZYTagCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    
//    self.layer.cornerRadius = ZYTagCellHeight * 0.5;
//    self.layer.borderWidth = 1;
    
}

- (void)setTagModel:(ZYTagModel *)tagModel
{
    _tagModel = tagModel;
    
    [self.tagBtn setTitle:tagModel.text forState:UIControlStateNormal];
    [self.tagBtn setTitleColor:tagModel.color forState:UIControlStateNormal];
    [self.tagBtn setImage:tagModel.image forState:UIControlStateNormal];
    
    [self kc_setBorderWithWidth:1 cornerRadius:ZYTagCellHeight * 0.5 color:tagModel.color];
    
//    self.layer.borderColor = tagModel.color.CGColor;
    
}

@end
